package com.chang.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chang.product.entity.BrandEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 品牌
 *
 * @author chang
 * @email 2045807586@qq.com
 * @date 2024-01-02 16:10:53
 */
@Mapper
public interface BrandDao extends BaseMapper<BrandEntity> {

    // 更新逻辑删除字段
    int updateDeleted(@Param("BrandEntity")BrandEntity brandEntity);

    // 逻辑删除查询
    List<BrandEntity> selectDeleted();

    // 最终物理删除
    void finalDelete(List<Long> list);
}
